//
//  ProxyTextViewDelegate.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/12.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <UIKit/UIKit.h>

#ifndef ProxyTextViewDelegate_h
#define ProxyTextViewDelegate_h

@class ProxyTextView;

@protocol ProxyTextViewDelegate <NSObject>

@optional

- (BOOL)shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)replacementText;

- (BOOL)shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)range;

- (BOOL)shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)range;

- (void)textViewDidBeginEditing:(ProxyTextView *)growingTextView;

- (void)textViewDidChangeSelection:(ProxyTextView *)growingTextView;

- (void)textViewDidEndEditing:(ProxyTextView *)growingTextView;

- (BOOL)textViewShouldBeginEditing:(ProxyTextView *)growingTextView;

- (BOOL)textViewShouldEndEditing:(ProxyTextView *)growingTextView;

- (void)textViewDidChange:(ProxyTextView *)growingTextView;

- (void)willChangeHeight:(CGFloat)height;

- (void)didChangeHeight:(CGFloat)height;

@end

#endif /* ProxyTextViewDelegate_h */
